package com.example.framework;

import java.io.IOException;

public class ProcessHelper extends BaseHelper {

    private Process process;

    public ProcessHelper(HelperManager manager) {
        super(manager);
    }

    public void startApplication() throws IOException {
        String command = manager.getProperty("app.path");
        process = Runtime.getRuntime().exec(command);
    }

    public void stopApplication(){
        process.destroy();
    }
}
